package com.drei.wolke;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/** 
* @author 作者 owen E-mail: 624191343@qq.com
* @version 创建时间：2017年12月2日 下午7:11:57 
* 类说明 
* #从config server的trunk拉取unieap-config-client-dev.yml文件 bootstrap的spring.application.name-profiles
*
*spring:
*  cloud:
*   config:
*      uri: http://192.168.3.2:8888  uri 改变默认充本机localohostL8888拉取配置
*/
@EnableZuulProxy
@EnableDiscoveryClient
@SpringBootApplication
public class UnieapGatewayApp  {
	@Bean
	@LoadBalanced
	public RestTemplate restTemplate(){
		return new RestTemplate();
	}
	public static void main(String[] args) {
		
		SpringApplication.run(UnieapGatewayApp.class, args);
	}
}
